﻿using IdentityModel;
using IdentityModel.Client;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Models.Identity;
using Models.JsonResultModel;
using System.Net.Http.Headers;
using System.Security.Principal;
using UtilsORM.MySqlData;
using ServiceWeb.DBGateway;
using UtilsBase;
using FileServer.Controllers.API.Common;
namespace FileServer.Controllers.API.Mobile
{
    [Route("api/mobile/[controller]/[action]")]
    [ApiController]
    // [BasicAuthentication]
    public class DeviceValueCurrentController : ApiCommonControllerBase
    {

        public RespResultData getDataTableValueCurrent(string dguid)
        {
            return RespResult.Sucess(new DBIotDeviceValueCurrent().getDataTableValueCurrent(dguid));
        }

        public RespResultData getValueCurrentByDevice(string dguid)
        {
            return RespResult.Sucess(new DBIotDeviceValueCurrent().getValueCurrentByDevice(dguid));
        }
    }
}
